package org.dsmltools;

import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
//import netscape.ldap.*;

import java.util.Hashtable;

import com.novell.ldap.LDAPAttributeSchema;
import com.novell.ldap.LDAPEntry;
import com.novell.ldap.LDAPSchema;
import com.novell.ldap.LDAPObjectClassSchema;

/**
 * Created by IntelliJ IDEA.
 * User: tdh
 * Date: Jan 5, 2009
 * Time: 11:48:11 AM
 * To change this template use File | Settings | File Templates.
 */
public class DSMLLDAPConverterWrapper {

    public static Element attrTypeToNode(LDAPAttributeSchema xiAttrSchema,
                                         Document xiOwnerDoc) {
        return DSMLLDAPConverter.attrTypeToNode(xiAttrSchema, xiOwnerDoc);
    }


    public static Element entryToNode(LDAPEntry xiEntry,
                                      Document   xiOwnerDoc)
    {
        return DSMLLDAPConverter.entryToNode(xiEntry, xiOwnerDoc);
    }

    public static String getSubText(Node xiNode)
    {
        return DSMLLDAPConverter.getSubText(xiNode);
    }
    /*
    public static LDAPAttribute nodeToAttr(Node xiNode)
    {
        return DSMLLDAPConverter.nodeToAttr(xiNode);
    }

    public static LDAPAttributeSchema nodeToAttrType(Node      xiNode,
                                                     Hashtable xoIDNameHash)
            throws DSMLRefException
    {
        return DSMLLDAPConverter.nodeToAttrType(xiNode, xoIDNameHash);
    }

    public static LDAPObjectClassSchema nodeToObjectclass(Node       xiNode,
                                                          Hashtable  xiAttrs)
            throws DSMLRefException
    {
        return DSMLLDAPConverter.nodeToObjectclass(xiNode, xiAttrs);
    }
    */
    public static LDAPEntry nodeToEntry(Node xiNode)
    {
        return DSMLLDAPConverter.nodeToEntry(xiNode);
    }

    public static Element objectclassToNode(LDAPObjectClassSchema xiOCSchema,
                                            Document              xiOwnerDoc)
    {
        return DSMLLDAPConverter.objectclassToNode(xiOCSchema, xiOwnerDoc);
    }

}

